<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
	
  </head>
  
  <body>
  <script type="text/javascript">
      function rec(form){
      
      var a=form.count.value;
      var b=form.code.value;
    
      if(a==""){
          alert("账户不可以为空！");
          return false;
      }  
      
      if(b==""){
          alert("密码不可以为空！");
          return false;
      }   
         
      
      return true;   
      
      }
  
  </script>
  
  <table width="773" height="787" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  
  
  <tr>
    <td width="25%" height="500"><div align="center">

    <jsp:include flush="true" page="left.jsp"></jsp:include>
    </div></td>
    
    
    
    <td width="75%"><div align="center" >    
    
     <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
     <center>
        <font face="楷体" size="6" color="">
                                    登录界面       login.jsp<br><br><br>
        </font>
    
        <form action="login.action"> 
                                         账户：<input type="text" name="count" size="20" value="liang"> <br> 
                                         密码：<input type="text" name="code" size="20" value="liang"> <br>
                                         类型：    <select name="usertype"  >
				        <option>student</option>
						<option>teacher</option>
						<option>company</option>
						<option>admin</option>
	                </select>   
	           <br><br>                                              
            <input type="submit" value="登录" onclick="return rec(this.form);">
         </form>
     </center>
     
     
     <hr>
     <a href="register.jsp">学生注册</a><br>
     <a href="registerCompany.jsp">企业注册</a><br>
     <a href="registerTeacher.jsp">教师注册</a><br>
     
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    </div></td>
  </tr>
  
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>
